﻿using System;
using Gammar.Price.Business;
using Gammar.Price.ObjectModel;

public partial class UserControls_HotWord : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string guid = this.Request["cid"];
        if (string.IsNullOrEmpty(guid)) return;

        try
        {
            Sp_CategoryEntity entity = CategoryLogic.RetrieveCategoryByGuid(new Guid(guid));
            if (entity != null)
            {
                this.MultiView1.ActiveViewIndex = CategoryLogic.RetrieveHotKeyIndexByCategoryId(entity.CClass_ID.Value);
            }
        }
        catch
        {

        }
    }
}
